<?php
class Accountsettings_Model_Accountsettings implements Accountsettings_Model_Mainable{
    
    private $action_handler;
    
    public function main(array $variables = null) {
        if(isset($variables['get']['page']) && !is_null($variables['get']['page']) && ($variables['get']['page'] != '')){
            $this->action_handler = new Accountsettings_Model_Accountsettingsdecision;
            return $this->action_handler->main($variables);
        }
        else {
            $this->action_handler = new Accountsettings_Data_Getaccountinfo;
            $page['content'] = $this->action_handler->main($variables);
            $page['template'] = WEB_ROOT_FOLDER."accountsettings/views/accountslist.php";
            return $page;
        }
    }

}
